<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/10/17
 * Time: 11:53
 */

namespace app\api\validate;


class WorkDepartmentAddParameter extends BaseValidate
{
    protected $rule=[
        'name'=>'require|isNotEmpty',
        'd_id'=>'require|isPositiveInt',
    ];

    protected $message=[
        'name'=>'部门名称不能为空',
        'd_id'=>'部门id只能为正整数',
    ];
}